ecaede7e056f7611fe8aec3ed282a73cd0fd2c4f,Common/Frameworks/ERDirectToWeb/Sources/er/directtoweb/ERD2WInspectPage.java,ERD2WInspectPage,tryToSaveChanges,#boolean#,180
Before Change
errorMessage = " Could not save your changes: "+e.getMessage()+" ";
} catch(EOGeneralAdaptorException e) {
if(shouldRecoverFromOptimisticLockingFailure() && ERXEOAccessUtilities.recoverFromAdaptorException(object().editingContext(), e)) {
errorMessage = "Could not save your changes. The "+d2wContext().valueForKey("displayNameForEntity")+
" has changed in the database before you could save. Your changes have been lost. Please reapply them.";
} else {
throw e;
After Change
validationFailedWithException(ex, ex.object(), "saveChangesExceptionKey");
} catch(EOGeneralAdaptorException ex) {
if(shouldRecoverFromOptimisticLockingFailure() && ERXEOAccessUtilities.recoverFromAdaptorException(object().editingContext(), ex)) {
errorMessage = ERXLocalizer.currentLocalizer().localizedTemplateStringForKeyWithObject("CouldNotSavePleaseReapply", d2wContext());
} else {
throw ex;
}